﻿<!DOCTYPE html>
<html>
<head>
    <title>Mobile CRM</title>
    <script type="text/javascript" src="scripts/jquery-1.8.0.js"></script>
    <script type="text/javascript" src="scripts/jquery.validate.js"></script>
    <script type='text/javascript' src='scripts/jquery.mobile-1.2.0-pre.js'></script>
    <script type='text/javascript' src='scripts/jquery.validate.js'></script>
    <script type='text/javascript' src='scripts/knockout-2.1.0.js'></script>
    <script type="text/javascript" src="scripts/mKook.js"></script>
    <script type="text/javascript" src="scripts/dbManager.js"></script>
    <script type="text/javascript" src="scripts/uiManager.js"></script>
    <script type='text/javascript' src='scripts/cameraManager.js'></script>
    <script type='text/javascript' src='scripts/uploadManager.js'></script>
    <script type='text/javascript' src='scripts/templates.js'></script>
    <script type='text/javascript' src='scripts/models.js'></script>
    <script type="text/javascript" src="scripts/log4javascript.js"></script>
    <script type="text/javascript" src="cordova-2.0.0.js"></script>

    <link href="Content/jquery.mobile-1.2.0-pre.css" rel="stylesheet" type="text/css" />
    <link href="Content/jqm-docs.css" rel="stylesheet" type="text/css" />
	<link href="Content/mobileCRM.css" rel="stylesheet" type="text/css" />

    <script id="loggerInit" type="text/javascript">
        var log = log4javascript.getDefaultLogger();
    </script>
    <script id="crmMain" type="text/javascript">
        function onDeviceReady() {
            cameraManager = new CameraManager();
            uploadManager = new UploadManager();
        }

        $(document).ready(function () {
            document.addEventListener("deviceready", onDeviceReady, false);
            //Создание и иницализация объекта mKook
            mk.init();
            //Формирование запроса на авторизацию
            mk.doRequest(reqAuth);
        });

        $(document).bind("mobileinit", function () {
            $.mobile.allowCrossDomainPages = true;
        });
    </script>
</head>
<body>
    <div data-role="page" id="page1">
        <div data-role="header">
        </div>
        <div data-role="content">
        </div>
        <div data-role="footer">
        </div>
    </div>
    <div data-role="page" id="page2">
        <div data-role="header">
        </div>
        <div data-role="content">
        </div>
        <div data-role="footer">
        </div>
    </div>
</body>
</html>
